FROM nginx
RUN rm -rf /usr/share/nginx/html/*
COPY dist /usr/share/nginx/html
COPY docker-entrypoint.sh /usr/local/bin/
COPY dist/css /usr/share/nginx/html/dist/css/
COPY dist/font /usr/share/nginx/html/dist/font/
COPY dist/images /usr/share/nginx/html/dist/images/
COPY dist/lay /usr/share/nginx/html/dist/lay/
COPY dist/layui.all.js /usr/share/nginx/html/dist/
COPY dist/layui.js /usr/share/nginx/html/dist/
ENTRYPOINT ["sh","/usr/local/bin/docker-entrypoint.sh"]
